package com.example.service;


import com.example.mapper.SysroleMapper;
import com.example.model.Sysrole;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * RoleService
 */
@Service
public class RoleService {

    @Autowired
    private SysroleMapper mapper;

    public Sysrole roleDetail(Integer id){
        return mapper.selectByPrimaryKey(id);
    }

    public List<Integer> listPermission(Integer id){
        return mapper.listPermission(id);
    }
}
